<% include file="header.html" %>
		
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			
			
			<!-- Page Head -->
			<h2>图片广告</h2><p class="clear"></p>
			
			
			<ul class="shortcut-buttons-set" style="display:none;">
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/pencil_48.png" alt="icon" /><br />
					Write an Article
				</span></a></li>
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/paper_content_pencil_48.png" alt="icon" /><br />
					Create a New Page
				</span></a></li>
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/image_add_48.png" alt="icon" /><br />
					Upload an Image
				</span></a></li>
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="images/icons/clock_48.png" alt="icon" /><br />
					Add an Event
				</span></a></li>
				
				<li><a class="shortcut-button" href="#messages" rel="modal"><span>
					<img src="images/icons/comment_48.png" alt="icon" /><br />
					Open Modal
				</span></a></li>
				
			</ul><!-- End .shortcut-buttons-set -->
			
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
                                        <span style="margin-left:20px; float:left; line-height:36px;font-size:16px;">图片广告投放管理</span>
                    
					<div class="clear"></div>
					
			  </div> <!-- End .content-box-header -->
				
				<div class="content-box-content" style="padding:0;">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						
						<table class="table_list">
							
							<thead>
								<tr>
                                	<th></th>
								   <th style="padding:10px 0 10px 5px">ID</th>
								   <th>投放名称</th>
								   <th>广告主</th>
								   <th>广告文字</th>
								   <th>广告样式</th>
								   <th>开始日期</th>
                                   <th>结束日期</th>
                                   <th width="55">权重</th>
                                   <th width="70">投放量</th>
                                   <th width="106">操作</th>
								</tr>
							</thead>
						 
							<tfoot>
								<tr>
									<td colspan="14"  style="border-top: 1px solid #DDDDDD;">
										<div class="bulk-actions align-left search">
										</div>
										
										<div class="pagination">
											<% $page %>
										</div> <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>
								<% section name=obj loop=$picList %>
								<tr>
                                	<td><input type="checkbox" name="checkbox_name" style="vertical-align: middle; margin-right: 5px; height: 25px;margin-left:4px"></td>
									<td><% $picList[obj]->id %></td>
									<td><% $picList[obj]->name %></td>
									<td><% $picList[obj]->order %></td>
									<td><% $picList[obj]->text %></td>
                                    <td><% $picList[obj]->TBD %></td>
									<td><% $picList[obj]->start|date_format:"%Y-%m-%d %H:%M:%S"  %></td>
									<td><% $picList[obj]->end|date_format:"%Y-%m-%d %H:%M:%S"  %></td>
                                    <td><% $picList[obj]->weight %></td>
									<td><% $picList[obj]->num %></td>
									<td>
										<!-- Icons -->
										 <a style="margin-left:28px;" href="javascript:void(0)" onclick="showPage('?do=pic.info&id=<%$picList[obj]->id%>');return false" title="Edit"><img src="images/icons/pencil.png" alt="Edit" /></a>
										 <a href="javascript:void(0)" onclick="show_delete('<% $picList[obj]->text %>','?do=pic.delete&id=<%$picList[obj]->id%>');return false" title="Delete"><img src="images/icons/cross.png" alt="Delete" /></a> 
										 <a href="javascript:previewofpic('<%$picList[obj]->id%>');" title="search"><img src="images/icons/search.png" alt="search" /></a>
									</td>
								</tr>
								<%/section %>
							</tbody>
							
						</table>
						
					</div> <!-- End #tab1 -->
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div id="dialog-modal" title="preview">
			</div>
			
<% include file="footer.html" %>
